package com.bestcem.xm.user.service;

import com.bestcem.xm.common.core.domain.web.ServiceResult;
import com.bestcem.xm.component.security.dto.AuthenticationDTO;

/**
 * @author Linked <zhijian.lin@idiaoyan.com>
 * @version v1.0
 * @date 2022/8/8 21:25
 */
public interface AuthenticationService {

    /**
     * 鉴权 python java共用此方法
     *
     * @param token          token
     * @param authentication 是否需要检验权限
     * @param uri            接口uri
     * @param method         请求类型
     * @return com.bestcem.xm.util.ServiceResult<com.bestcem.xm.common.auth.dto.AuthenticationDTO>
     * @author Linzhijian <zhijian.lin@idiaoyan.com>
     * @date 2022/08/09 14:38
     */
    ServiceResult<AuthenticationDTO> checkAuthentication(String token, Boolean authentication, String uri,
                                                         String method);


}
